<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>易果网</title>
<link rel="shortcut icon"
	href="https://login.yiguo.com/Content/img/yiguo.ico">
<script src="<%=request.getContextPath()%>/assets/login/jquery.js"></script>

<link href="<%=request.getContextPath()%>/assets/login/public.css"
	rel="stylesheet">


<link href="<%=request.getContextPath()%>/assets/login/login.css"
	rel="stylesheet" type="text/css">

<link href="<%=request.getContextPath()%>/assets/login/themes.css"
	rel="stylesheet">

<script src="<%=request.getContextPath()%>/assets/login/tab.js"></script>


<script type="text/javascript">
	$(function() {
		//手机易果
		$('.mobile .mobile-tit').wrap('<div class="mobile-tit-w"></div>');
		$('.mobile').hover(function() {
			$(this).addClass('mobile-hover');
		}, function() {
			$(this).removeClass('mobile-hover');
		});

		Form.VC = '有无效字符，请重新输入'
	});
</script>

<!--IE6png兼容-->
<!--[if IE 6]>
    <script src="/Content/DD_belatedPNG.js"></script>
    <script src="/Content/IE6png.js"></script>
    <![endif]-->
<script src="<%=request.getContextPath()%>/assets/login/topdsp.js"></script>

</head>



<body id="body">
	<!------- 顶部工具栏开始 ------->
	<div class="w">

		<!------- 顶部工具栏结束 ------->


		<div class="header clearfix">
			<div class="wrap">
				<div class="logo">
					<a href="http://www.yiguo.com/" target="_blank"></a>
					 <span
						class="h-tit">登录</span>
				</div>
			</div>
		</div>

		

		<form action="/" method="post" id="loginform">
			<div class="login">
				<div class="wrap clearfix">
					<div class="fl">
						<a href="http://www.yiguo.com/" target="_blank"><img
							src="<%=request.getContextPath()%>/assets/login/9288691196862353.jpg"
							height="418" width="666"></a>
					</div>
					<div class="fr">
						<p class="right"></p>
						<div class="login-main">
							<p>
								<strong>欢迎登录</strong><span>还没有账号？<a class="green"
									href="https://login.yiguo.com/Register">立即注册</a></span>
							</p>

							<div id="msg-wrap">
								<div></div>
							</div>

							<p>
								<span class="input-phone-icon">&nbsp;</span><input
									class="input input-phone" id="loginname" name="loginname"
									placeholder="邮箱/账号/已验证手机" type="text">
							</p>
							<p>
								<span class="input-key-icon">&nbsp;</span><input
									class="input input-key" id="password" name="password" placeholder="密码"
									type="password">
							</p>
							<p>
								<label><input data-val="true"
									data-val-required="The 自动登录 field is required."
									id="UserNameRemeber" name="UserNameRemeber" value="true"
									type="checkbox"><input name="UserNameRemeber"
									value="false" type="hidden"> 自动登录</label><span> <a
									class="gray" href="https://login.yiguo.com/FindPwd">忘记登录密码？</a>
								</span>
							</p>
							<p>
								<a id="btnLogin"  class="btn-green-l">登
									&nbsp; 录</a>
							</p>
							<p>第三方登录</p>
							<div>
							<span id="logindiv"></span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>



	</div>

<script type="text/javascript" id="bd_soc_login_boot"></script>
<script type="text/javascript">
(function(){
  var t = new Date().getTime(),
      script = document.getElementById("bd_soc_login_boot"),
      redirect_uri = encodeURIComponent("http://127.0.0.1/oauthMsg.action"),
      domid = "logindiv",
      src = "http://openapi.baidu.com/social/oauth/2.0/connect/login?redirect_uri=" + redirect_uri + "&domid=" + domid + "&client_type=web&response_type=code&media_types=sinaweibo%2Cqqdenglu%2Cbaidu&size=-1&button_type=2&client_id=GrS67GUaVSUxnwoLlZds0Yfg&view=embedded&t=" + t;
  	  script.src = src;
})();
</script>


<script type="text/javascript">

				$("#btnLogin").click(function() {
							$.ajax({
								type:"post",
								url:"<%=request.getContextPath()%>/login.action",
								data:$("#loginform").serialize(),
								dataType:"json",
								success:function(msg){
									if(msg){
										alert("登录成功！")
										location.href="<%=request.getContextPath()%>/index.jsp";
									}else{
										alert("登录失败！")
									}
								}
							})
			});
		</script>
</body>
	